package com.ubs.training.server.dao;

import com.ubs.training.server.dao.model.Client;
import com.ubs.training.server.dao.model.Contract;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: xubuntu
 * Date: 8/21/12
 * Time: 3:02 AM
 * To change this template use File | Settings | File Templates.
 */
public interface ContractDao {
    List<Contract> getAll();

    List<Contract> getByClientId(int clientId);

    Contract getById(int idContract);

    void add(Contract contract);

    void update(Contract contract);

    void delete(Contract contract);

    void delete(int id);
}
